<!--{Atemplate tpl/header}-->

<style type="text/css" media="screen"> 
#viewerPlaceHolder{width:100%;height:100%;display:block;margin:0;padding:0;float:left;min-height: 500px;}
#viewerPlaceHolder object{width:100%;height:100%;min-height:500px;margin:0;padding:0;float:left;display:block;}
#flashContent { }
</style>
<script type="text/javascript" src="/plugin/FlexPaper/js/flexpaper_flash.js"></script>
	<div id="viewerPlaceHolder" style="">Document loading..</div>
	<script type="text/javascript"> 
		var fp = new FlexPaperViewer(	
				 '/plugin/FlexPaper/FlexPaperViewer',
				 'viewerPlaceHolder', { config : {
				 SwfFile : encodeURI("$swfurl"),
				 Scale : 0.6, 
				 ZoomTransition : 'easeOut',
				 ZoomTime : 0.5,
				 ZoomInterval : 0.2,
				 FitPageOnLoad : true,
				 FitWidthOnLoad : true,
				 FullScreenAsMaxWindow : false,
				 ProgressiveLoading : false,
				 MinZoomSize : 0.2,
				 MaxZoomSize : 5,
				 SearchMatchAll : false,
				 InitViewMode : 'Portrait',
				 
				 ViewModeToolsVisible : true,
				 ZoomToolsVisible : true,
				 NavToolsVisible : true,
				 CursorToolsVisible : true,
				 SearchToolsVisible : true,
				
				 localeChain: 'en_US'
				 }});
				 
		function onDocumentLoadedError(errMessage){
			jQuery('#viewerPlaceHolder').html("Error displaying document. Make sure the conversion tool is installed and that correct user permissions are applied to the SWF Path directory ");
		}
	</script>
</div>
</body>
</html>
